//
//  CMNetwork.swift
//  covermedia
//
//  Created by travel on 2016/11/7.
//  Copyright © 2016年 covermedia. All rights reserved.
//

import UIKit
import Alamofire

class CMNetwork {
    private static let manager = NetworkReachabilityManager.init()
    
    /// 网络是否可用
    class var isReachable:Bool {
        return manager?.isReachable ?? false
    }
    
    /// wifi 可用
    class var isReachableOnEthernetOrWiFi:Bool {
        return manager?.isReachableOnEthernetOrWiFi ?? false
    }
    
    
    /// 数据网络可用
    class var isReachableOnWWAN:Bool {
        return manager?.isReachableOnWWAN ?? false
    }
}
